Fix compile warning from zero-length printf format string.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 17 Aug 2005 08:52:04 +0000 (08:52 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 17 Aug 2005 08:52:04 +0000 (08:52 +0000)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
linux-2.6-xen-sparse/arch/xen/kernel/reboot.c

index d2e204d12d0a90068720fbde8d3a62ad53911c37..445daf01e66b3cfe27667a2371fcfacb02905b08 100644 (file)
@@ -264,7 +264,7 @@ static void shutdown_handler(struct xenbus_watch *watch, const char *node)
         return;
     }
 
-    xenbus_printf("control", "shutdown", "");
+    xenbus_write("control", "shutdown", "", O_CREAT);
 
     if (strcmp(str, "poweroff") == 0)
         shutting_down = SHUTDOWN_POWEROFF;